/* 
 * File:   Console.h
 * Author: ja1e09
 *
 * Created on July 28, 2011, 6:30 PM
 */

#ifndef CONSOLE_H
#define	CONSOLE_H

#include "CConsoleItem.h"

// Singleton Class

class Console
{
public:
    static Console* GetInstance();
    void Destroy(void);
    void Add(std::string sMsg);
    void Clear();
    void PrintItem(CConsoleItem* Item);
    void SetRank(const int iRank) {this->iRank=iRank;};

protected:
    Console();
    Console(const Console&);
    Console& operator=(const Console&);

private:
    static Console* pInstance;
    std::vector<CConsoleItem*> vConsole;
    int iRank;
};


#endif	/* CONSOLE_H */

